#@datagrid() #define content_header()
<h1>
	提现管理 <small>withdraw tables</small>
</h1>
<ol class="breadcrumb">
	<li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
	<li><a href="/withdraw/">财务</a></li>
	<li class="active">提现管理</li>
</ol>
#end #define content()
<div class="box">
	<div class="box-header">
		<!--选项卡-->
		#set(tabid="tabpass_list") #include("_withdraw_navtab.html")
		
        <!-- search -->
        #set(formaction="pass_list")
        #include("_searchform.html")
	</div>
	<!-- /.box-header -->
	<div class="box-body">
		<table
			class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
			<thead>
				<tr>
					<th>#</th>
					<th>用户ID</th>
					<th>会员名</th>
					<th>手机号</th>
					<th>账户余额</th>
					<th>冻结金额</th>
					<th>提现金额</th>
					<th>收款账号</th>
					<th>持卡人姓名</th>
					<th>开户银行</th>
					<th>审核时间</th>
					<th>审核员ID</th>
					<th>原因</th>
					<th>申请时间</th>
					<th>提现说明</th>
				</tr>
			</thead>
			<tbody>
				#for(x : listPage.getList())
				<tr data-key="#(x.id)">
					<td class="xsui-rowid" title="#(x.id)"></td>
					<td>#(x.user_id)</td>
					<td>#(x.nickname)</td>
					<td>#(x.mobile)</td>
					<td>#(x.blance)</td>
					<td>#(x.frozen_blance)</td>
					<td>#(x.amount)<span class="lnk-cancel"
						data-time="#(x.audit_time)" style="display: none"><a
							href="/withdraw/unAudit/#(x.id)">[撤销]</a></span></td>
					<td>#(x.account)</td>
					<td>#(x.holder)</td>
					<td>#(x.bank_name)</td>
					<td>#(x.auditTimeText)</td>
					<td>#(x.auditor_id)</td>
					<td>#(x.rejected_remark)</td>
					<td>#(x.createTimeText)</td>
					<td>#(x.remark)</td>
				</tr>
				#end
			</tbody>
		</table>
        <!--分页条-->
        #include("_pagination.html")
	</div>
	<!-- /.box-body -->
</div>
#end #define body_foot()
<script>
/* unAudit流程有点复杂，要从交易明细表取数据, 不搞了，审核的时候控制严格一些就好
function toggleCtlButton(){
	$('.lnk-cancel').each(function() {
		var $span = $(this);
		var date1 = Date.parse($span.data("time"));
		var date2 = new Date().getTime();
		var diff = Math.ceil((date2 - date1) / 1000);
		var maxsec = 300; // 5分钟=300秒
		if (diff < maxsec) {
			$span.show();
		} else {
			$span.hide();
		}
	})
}
toggleCtlButton();
setInterval(toggleCtlButton,3000);
*/
</script>
#end
